package cn.cheln.explorer.ds;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import cn.cheln.explorer.ds.database.SQLManager;

public class DatabaseHelper extends SQLiteOpenHelper
{
  public static String DATABASE_NAME = SQLManager.otherfile;
  public static int version = 1;

  public DatabaseHelper(Context paramContext)
  {
    super(paramContext, DATABASE_NAME, null, version);
  }

  public void onCreate(SQLiteDatabase paramSQLiteDatabase)
  {
    paramSQLiteDatabase.execSQL(SQLManager.createFileTable(SQLManager.tabledir));
    paramSQLiteDatabase.execSQL(SQLManager.createIndexOfTableFile(SQLManager.tabledir));
    paramSQLiteDatabase.execSQL(SQLManager.createFileTable(SQLManager.tablename));
    paramSQLiteDatabase.execSQL(SQLManager.createIndexOfTableFile(SQLManager.tablename));
    paramSQLiteDatabase.execSQL(SQLManager.createFileTable(SQLManager.tableimage));
    paramSQLiteDatabase.execSQL(SQLManager.createIndexOfTableFile(SQLManager.tableimage));
  }

  public void onOpen(SQLiteDatabase paramSQLiteDatabase)
  {
    super.onOpen(paramSQLiteDatabase);
  }

  public void onUpgrade(SQLiteDatabase paramSQLiteDatabase, int paramInt1, int paramInt2)
  {
    paramSQLiteDatabase.execSQL("DROP TABLE IF EXISTS " + DATABASE_NAME);
    onCreate(paramSQLiteDatabase);
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.ds.DatabaseHelper
 * JD-Core Version:    0.5.2
 */